import request from '@/utils/request'
/**
 * 加盟商充值列表
 * @param {*} data
 */
export function crmAllianceBusinessIndexAPI(data) {
  return request({
    url: 'crmAllianceBusiness/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 加盟商余额列表
 * @param {*} data
 */
 export function allianceBusinessBalanceIndexAPI(data) {
  return request({
    url: 'crmAllianceBusinessBalance/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}


/**
 * 查看详情
 * @param {*} data
 */
 export function crmAllianceBusinessQueryByIdAPI(data) {
  return request({
    url: `crmAllianceBusiness/queryListById/${data}`,
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 总部充值列表
 * @param {*} data
 */
 export function crmHeadquartersBusinessIndexAPI(data) {
  return request({
    url: 'crmHeadquartersBusiness/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 总部余额列表
 * @param {*} data
 */
 export function crmHeadquartersBusinessBalanceIndexAPI(data) {
  return request({
    url: 'crmHeadquartersBusinessBalance/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 获取渠道来源
 * @param {*} data
 */
 export function querySourceAPI(data) {
  return request({
    url: 'crmPutinMoney/querySource',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 总部充值删除
 * @param {*} data
 */
 export function crmHeadquartersBusinessDeleteByIds(data) {
  return request({
    url: 'crmHeadquartersBusiness/deleteByIds',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 总部充值查看详情
 * @param {*} data
 */
 export function crmHeadquartersBusinessQueryByIdAPI(data) {
  return request({
    url: `crmHeadquartersBusiness/queryListById/${data}`,
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
